﻿#region Imports
using System;
using System.Windows;
using System.Windows.Media;
using BulkRenamer.App.WPF.Converters;
using BulkRenamer.App.WPF.ViewModels;
using BulkRenamer.Util.Util;
#endregion Imports

namespace BulkRenamer.App.WPF.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        #region Constructors
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = new MainViewModel();

            EventNotifier.BasePathFocusEventHandler += new EventHandler((s, e) => { txtBasePath.Focus(); });
            PathValidatorConverter.DefaultFontColour = (SolidColorBrush)this.FindResource("DefaultFontColour");
        }
        #endregion Constructors

        private void this_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            this.DragMove();
        }
    }
}
